using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace CPGVertragsverwaltung
{
    public delegate void DataChangedDelegate();

    public class StringCollection : ArrayList
    {
        public String this[int Index]
        {
            get
            {
                return (String)base[Index];
            }
            set
            {
                base[Index]=value;
            }
        }

        public void Add(String pObject)
        {
            base.Add(pObject);
        }
    }

    public class SecurityObjectsCollection : ArrayList
    {
        public StringCollection this[int Index]
        {
            get
            {
                return (StringCollection)base[Index];
            }
            set
            {
                base[Index]=value;
            }
        }

        public void Add(StringCollection pObject)
        {
            base.Add(pObject);
        }
    }

    public class SecurityObjectPermission
    {
        private Boolean mCanRead = false;
        private Boolean mCanWrite = false;
        private String mSID = "";

        public Boolean canRead
        {
            get { return mCanRead; }
            set { mCanRead = value; }
        }

        public Boolean canWrite
        {
            get { return mCanWrite; }
            set { mCanWrite = value; }
        }

        public String SID
        {
            get { return mSID; }
            set { mSID = value; }

        }
    }

    public class SecurityObjectPermissionCollection : ArrayList
    {
        public SecurityObjectPermission this[int Index]
        {
            get { return (SecurityObjectPermission)base[Index]; }
            set { base[Index] = value; }
        }

    }
}
